﻿@model Orion.Models.HomeIndexViewModel

@{
    ViewBag.Title = "GetEmailList";
    Layout = "~/Views/Shared/_WorkLayout.cshtml";
}

<h2>GetEmailList</h2>


@foreach (var e in Model.EmailList)
{
    
    <ul>
        <li>@e.Email </li>
    </ul>
}   

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th></th>
    </tr>

@foreach (var item in Model.EmailList) {
    
    <tr>
        <td>
            @Html.ActionLink("Edit", "Edit", new { /* id=item.PrimaryKey */ }) |
            @Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ }) |
            @Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ })
        </td>
    </tr>
}

</table>
